﻿using SportsPlatform.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Dto.SportBusiness.CompetitionProjec
{
    /// <summary>
    /// 获取当前比赛项目信息返回
    /// </summary>
    public class GetCurrentCompetitionProjectListDto
    {
        /// <summary>
        /// 比赛项目ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 赛事Id
        /// </summary>
        public Guid CompetitionId { get; set; }

        /// <summary>
        /// 赛事名称
        /// </summary>
        public string CompetitionName { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 项目类型
        /// </summary>
        public string ProjectType { get; set; }

        /// <summary>
        /// 比赛类型
        /// </summary>
        public int GameType { get; set; }

        /// <summary>
        /// 比赛类型名称
        /// </summary>
        public string GameTypeName { get; set; }

        /// <summary>
        /// 成绩计算规则
        /// </summary>
        public Guid CalculationRule { get; set; }

        /// <summary>
        /// 成绩惩罚规则
        /// </summary>
        public Guid PunishmentRule { get; set; }

        /// <summary>
        /// 成绩计算规则内容
        /// </summary>
        public string CalculationRuleContent { get; set; }

        /// <summary>
        /// 成绩惩罚规则内容
        /// </summary>
        public string PunishmentRuleContent { get; set; }

        /// <summary>
        /// 比赛日期
        /// </summary>
        public string GameDate { get; set; }

        /// <summary>
        /// 比赛地点
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 团队最多人数
        /// </summary>
        public int? TeamMaxUserNum { get; set; }

        /// <summary>
        /// 个人赛报名人数最大限制
        /// 团队赛不需要传0
        /// </summary>
        public int MaxEmployeeNum { get; set; }

        /// <summary>
        /// 最多感应器数量
        /// </summary>
        public int? SensorsMaxNum { get; set; }

        /// <summary>
        /// 报名人数
        /// </summary>
        public int UserNum { get; set; }

        /// <summary>
        /// 报名费用
        /// </summary>
        public string Money { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 状态Str
        /// </summary>
        public string StateStr
        {
            get
            {
                return Enum.GetName(typeof(CompetitionProjectStateEnum), State);
            }
        }

        /// <summary>
        /// 是否启用（0：禁用；1：启用）
        /// </summary>
        public int IsEnable { get; set; }
    }
}
